# -*- coding: utf-8 -*-
# Author: xiantingDeng
# File: 01_迭代器.py
# Time: 22:28


# from collections import Iterator
#
# print(isinstance("abc",Iterator))
# print(isinstance([],Iterator))
# a = [11,22,33,44]
# print(next())
# print(next((x for x in range(10))))


# list = [1,2,3,4]
# it = iter(list)
# print(next(it))
# print(next(it))
list = [1,2,3,4]
it = iter(list)

for i in it:
    print(i,end=" ")

